package com.demo.common.core.exception;


import lombok.Getter;

@Getter
public class BaseException extends RuntimeException{
    private static final long serialVersionUID = -161366031297732876L;

    private final ResponseErrorCode responseErrorCode;

    public BaseException() {
        super(ResponseErrorCode.INTERNAL_SERVER_ERROR.getMsg());
        this.responseErrorCode = ResponseErrorCode.INTERNAL_SERVER_ERROR;
    }

    public BaseException(ResponseErrorCode responseErrorCode) {
        super(responseErrorCode.getMsg());
        this.responseErrorCode = responseErrorCode;
    }

}
